/*
 * @Author: bear
 * @Date: 2022-08-04 15:25:36
 * @LastEditors: bear
 * @LastEditTime: 2022-08-05 10:38:13
 * @Description: your project
 * @version: 1.0
 */
// 桌面菜单
const { Menu } = require("electron");
let menuList = [
  {
    label: "首页",
    submenu: [
      {
        label: "返回首页",
      },
    ],
  },
  {
    label: "我的",
  },
  {
    label: "编辑",
    submenu: [{ label: "撤销" }, { label: "恢复" }],
  },
];
const menu = Menu.buildFromTemplate(menuList);
Menu.setApplicationMenu(menu);
